#pragma once
#include "main.h"
#include "my_define.h"

/**
 * @brief 获取底层左右边线
 *
 * @param imageInput
 * @param Height
 * @param Width
 * @param Bottonline 底边行选择
 * @param image_info
 */
void Search_Bottom_Line_OTSU(uint8 imageInput[RESULT_HEIGHT][RESULT_WIDTH], uint8 Height, uint8 Width,
                             uint8 Bottonline, ImageInfo &image_info);

/**
 * @brief 通过sobel提取左右边线
 *
 * @param imageInput
 * @param Height
 * @param Width
 * @param Bottonline 底边行选择
 * @param image_info
 */
void Search_Left_and_Right_Lines(uint8 imageInput[RESULT_HEIGHT][RESULT_WIDTH], uint8 Height, uint8 Width,
                                 uint8 Bottonline, ImageInfo &image_info);

/**
 * @brief 通过OTSU获取边线和信息
 *
 * @param imageInput
 * @param Height
 * @param Width
 * @param Bottonline 底边行选择
 * @param image_info
 */
void Search_Border_OTSU(uint8 imageInput[RESULT_HEIGHT][RESULT_WIDTH], uint8 Height, uint8 Width, uint8 Bottonline,
                        ImageInfo &image_info);
